package com.louis.iread.utils;

import java.util.Date;
import java.text.SimpleDateFormat;

/**
 * Created by louis on 17-4-7.
 */

public class DateUtil {
    private static SimpleDateFormat sqliteDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String getSqliteDateTime(Date date) {
        if (date == null) {
            date = new Date();
        }
        String dateTime = sqliteDateFormat.format(date);
        return dateTime;
    }
}
